﻿//  --------------------------------
//  Copyright (c) AW Systems, Inc. All rights reserved.
//  This source code is made available under the terms of the Microsoft Public License (Ms-PL)
//  http://www.codeplex.com/SLAM/license
//  ---------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AWS.SLAM.Configuration
{
    /// <summary>
    /// Represents a field configured for a type managed by SLAM to establish an association.
    /// </summary>
    public class AssociationField
    {
        /// <summary>
        /// The association's name.
        /// </summary>
        public string AssociationName { get; set; }

        /// <summary>
        /// The name of the type configured in SLAM to be associated with the
        /// Association Field's parent type through this association.
        /// </summary>
        public string AssociatedTypeName { get; set; }

        /// <summary>
        /// The name of the field defining the association.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Creates a new AssociationField instance.
        /// </summary>
        public AssociationField() { }
    }
}
